package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor//全参构造
@NoArgsConstructor//无参构造
public class Catelog2Vo {//二级分类vo
    private String catalog1Id;//1级分类，父分类
    private List<Catelog3Vo> catalog3List;//3级分类，子分类
    private String id;
    private String name;

    @Data
    @AllArgsConstructor//全参构造
    @NoArgsConstructor//无参构造
    public static class Catelog3Vo {//三级分类vo
        private String catalog2Id;
        private String id;
        private String name;
    }
}
